package cn.hh.ymcc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class}) // 排除掉springMVC自带的连接池配置
@EnableDiscoveryClient
@EnableFeignClients({"cn.hh.ymcc.feign"})  // 开启feign客户端 包名不一样就加上
public class UserStart {

    public static void main(String[] args) {

        SpringApplication.run(UserStart.class,args);
    }
}
